home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 2_8.lha / 2_8 / 2_8a2.c < prev    next >
Text File  |  1993-08-08  |  344b  |  14 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. ong *ip, ivar;
  6. out << "Type = long\n";
  7. or (offset = 0; offset < sizeof(long); offset++)
  8.    {
  9.    cout << "\toffset = " << offset;
  10.    ip = (long *)&foovar.a[offset];
  11.    ivar = *ip;
  12.    cout << "\n";
  13.    }
  14.